home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / WFEXT.H < prev    next >
C/C++ Source or Header  |  1993-11-23  |  3KB  |  86 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * wfext.h -     Windows File Manager Extensions definitions              *
  4. *                                                                             *
  5. *               Version 3.10                                                  *                   *
  6. *                                                                             *
  7. *               Copyright (c) 1991-1992, Microsoft Corp. All rights reserved. *
  8. *                                                                             *
  9. *******************************************************************************/
  10.  
  11. #ifndef _INC_WFEXT
  12. #define _INC_WFEXT    /* #defined if wfext.h has been included */
  13.  
  14. #ifndef RC_INVOKED
  15. #pragma pack(1)         /* Assume byte packing throughout */
  16. #endif  /* RC_INVOKED */
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {            /* Assume C declarations for C++ */
  20. #endif    /* __cplusplus */
  21.  
  22. #define MENU_TEXT_LEN        40
  23.  
  24. #define FMMENU_FIRST        1
  25. #define FMMENU_LAST        99
  26.  
  27. #define FMEVENT_LOAD        100
  28. #define FMEVENT_UNLOAD        101
  29. #define FMEVENT_INITMENU    102
  30. #define FMEVENT_USER_REFRESH    103
  31. #define FMEVENT_SELCHANGE    104
  32.  
  33. #define FMFOCUS_DIR        1
  34. #define FMFOCUS_TREE        2
  35. #define FMFOCUS_DRIVES        3
  36. #define FMFOCUS_SEARCH        4
  37.  
  38. #define FM_GETFOCUS        (WM_USER + 0x0200)
  39. #define FM_GETDRIVEINFO        (WM_USER + 0x0201)
  40. #define FM_GETSELCOUNT        (WM_USER + 0x0202)
  41. #define FM_GETSELCOUNTLFN    (WM_USER + 0x0203)    /* LFN versions are odd */
  42. #define FM_GETFILESEL        (WM_USER + 0x0204)
  43. #define FM_GETFILESELLFN    (WM_USER + 0x0205)    /* LFN versions are odd */
  44. #define FM_REFRESH_WINDOWS    (WM_USER + 0x0206)
  45. #define FM_RELOAD_EXTENSIONS    (WM_USER + 0x0207)
  46.  
  47. typedef struct tagFMS_GETFILESEL
  48. {
  49.         UINT wTime;
  50.         UINT wDate;
  51.     DWORD dwSize;
  52.     BYTE bAttr;
  53.         char szName[260];               /* always fully qualified */
  54. } FMS_GETFILESEL, FAR *LPFMS_GETFILESEL;
  55.  
  56. typedef struct tagFMS_GETDRIVEINFO       /* for drive */
  57. {
  58.     DWORD dwTotalSpace;
  59.     DWORD dwFreeSpace;
  60.     char szPath[260];        /* current directory */
  61.     char szVolume[14];        /* volume label */
  62.     char szShare[128];        /* if this is a net drive */
  63. } FMS_GETDRIVEINFO, FAR *LPFMS_GETDRIVEINFO;
  64.  
  65. typedef struct tagFMS_LOAD
  66. {
  67.     DWORD dwSize;                /* for version checks */
  68.     char  szMenuName[MENU_TEXT_LEN];    /* output */
  69.     HMENU hMenu;                /* output */
  70.         UINT  wMenuDelta;                       /* input */
  71. } FMS_LOAD, FAR *LPFMS_LOAD;
  72.  
  73. typedef DWORD (CALLBACK *FM_EXT_PROC)(HWND, UINT, LONG);
  74. typedef DWORD (CALLBACK *FM_UNDELETE_PROC)(HWND, LPSTR);
  75.  
  76. #ifndef RC_INVOKED
  77. #pragma pack()          /* Revert to default packing */
  78. #endif  /* RC_INVOKED */
  79.  
  80. #ifdef __cplusplus
  81. }                       /* End of extern "C" { */
  82. #endif    /* __cplusplus */
  83.  
  84. #endif  /* _INC_WFEXT */
  85.     
  86.